using System;
using System.Collections.Generic;
using System.Text;

namespace Zsa.Reflection.Discovery
{
    /// <summary>
    /// Search criteria.
    /// </summary>
    public interface ITypeFilter
    {
        /// <summary>
        /// Gets the filter.
        /// </summary>
        /// <value>The filter.</value>
        object Filter { get; }

        /// <summary>
        /// Checks the type.
        /// </summary>
        /// <param name="type">The type.</param>
        /// <param name="filter">The filter.</param>
        /// <returns></returns>
        bool CheckType(Type type, object filter);        
    }
}
